#ifndef DIALOG_REGISTER_H
#define DIALOG_REGISTER_H

#include <QDialog>

#include <QMessageBox>
#include <QDebug>
#include <QNetworkAccessManager>




namespace Ui {
class Dialog_Register;
}

class Dialog_Register : public QDialog
{
    Q_OBJECT
public:
    QStringList m_info;


public:
    explicit Dialog_Register(QWidget *parent = nullptr);
    ~Dialog_Register();

    void postRegister(QString user,QString pwd);

private slots:
    void on_pb_register_clicked();

    void on_pb_back_clicked();

    void finishedSlot(QNetworkReply* reply);
signals:
    void register_info(const QString &username, const QString &password, const QString &email);

    void register_info_list(QStringList &info_list);
private:
    Ui::Dialog_Register *ui;
    QNetworkAccessManager *m_manager;
};

#endif // DIALOG_REGISTER_H
